from fastapi import APIRouter, Depends, status

router = APIRouter()

# 定义路径操作函数，添加到 APIRouter
@router.get("/items/")
async def read_items():
    return {"message": "Read all items"}

@router.get("/items/{item_id}")
async def read_item(item_id: int):
    return {"message": f"Read item with ID: {item_id}"}


